package com.tencent.controller;

import com.tencent.entity.HealthResult;
import com.tencent.service.Health1service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/result")
public class Health1Controller {
    @Autowired
    private Health1service health1service;

    @GetMapping
    private List<HealthResult> findResult(Integer id){
        List<HealthResult> result = health1service.findResult(id);
//        System.out.println(result);
        return result;
    }
}
